package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    void saveWithFlavor(DishDTO dishDTO);

    PageResult pageDish(DishPageQueryDTO dishPageQueryDTO);

    void delectDish(List<Long> ids);


    /**
     * 根据id查询菜品
     * */
    DishVO getByIdWithFlavor(Long id);

    /**
     * 修改菜品
     * */
    void updateDishWithFlavor(DishDTO dishDTO);

    List<Dish> getByCategoryId(Long categoryId);
}
